#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <string.h>

struct stu
{
	int name[20];
	int age;
	double score;
};

void set_stu(struct stu*ps)
{
	strcpy(ps->name, "zhangsan");
	ps->age = 20;
	ps->score = 100.0;
}

//void print_stu(struct stu* ps)
//{
//	printf("%s %d %lf\n", ps->name, ps->age, ps->score);
//}

void print_stu(struct stu ss)
{
	printf("%s %d %lf\n", ss.name, ss.age, ss.score);
}

int main()
{
	struct stu s = { 0 };
	set_stu(&s);
	//print_stu(&s);
	print_stu(s);
}